<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the number of candidates used during training</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-get-cascade-num-candidate-groups.html">fann_get_cascade_num_candidate_groups</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fann-get-cascade-output-change-fraction.html">fann_get_cascade_output_change_fraction</a></div>
 <div class="up"><a href="ref.fann.html">Fann 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.fann-get-cascade-num-candidates" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fann_get_cascade_num_candidates</h1>
  <p class="verinfo">(PECL fann &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">fann_get_cascade_num_candidates</span> &mdash; <span class="dc-title">Returns the number of candidates used during training</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fann-get-cascade-num-candidates-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>fann_get_cascade_num_candidates</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$ann</code></span>
   )</div>

  <p class="para rdfs-comment">
   The number of candidates used during training (calculated by multiplying
   <span class="function"><a href="function.fann-get-cascade-activation-functions-count.html" class="function">fann_get_cascade_activation_functions_count()</a></span>,
   <span class="function"><a href="function.fann-get-cascade-activation-steepnesses-count.html" class="function">fann_get_cascade_activation_steepnesses_count()</a></span> and
   <span class="function"><a href="function.fann-get-cascade-num-candidate-groups.html" class="function">fann_get_cascade_num_candidate_groups()</a></span>).
  </p>
  <p class="para">
   The actual candidates is defined by the <span class="function"><a href="function.fann-get-cascade-activation-functions.html" class="function">fann_get_cascade_activation_functions()</a></span> and
   <span class="function"><a href="function.fann-get-cascade-activation-steepnesses.html" class="function">fann_get_cascade_activation_steepnesses()</a></span> arrays. These arrays define the activation functions and
   activation steepnesses used for the candidate neurons. If there are 2 activation functions in the activation function array and
   3 steepnesses in the steepness array, then there will be 2x3=6 different candidates which will be trained. These 6 different
   candidates can be copied into several candidate groups, where the only difference between these groups is the initial weights.
   If the number of groups is set to 2, then the number of candidate neurons will be 2x3x2=12.
   The number of candidate groups is defined by <span class="function"><a href="function.fann-set-cascade-num-candidate-groups.html" class="function">fann_set_cascade_num_candidate_groups()</a></span>.
  </p>
  <p class="para">
   The default number of candidates is 6x4x2 = 48
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fann-get-cascade-num-candidates-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">ann</code></em></dt>

    <dd>

     <p class="para">Neural network <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>.</p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fann-get-cascade-num-candidates-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The number of candidates used during training, or <strong><code>FALSE</code></strong> on error.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fann-get-cascade-num-candidates-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.fann-get-cascade-activation-functions.html" class="function" rel="rdfs-seeAlso">fann_get_cascade_activation_functions()</a> - Returns the cascade activation functions</span></li>
    <li class="member"><span class="function"><a href="function.fann-get-cascade-activation-functions-count.html" class="function" rel="rdfs-seeAlso">fann_get_cascade_activation_functions_count()</a> - Returns the number of cascade activation functions</span></li>
    <li class="member"><span class="function"><a href="function.fann-get-cascade-activation-steepnesses.html" class="function" rel="rdfs-seeAlso">fann_get_cascade_activation_steepnesses()</a> - Returns the cascade activation steepnesses</span></li>
    <li class="member"><span class="function"><a href="function.fann-get-cascade-activation-steepnesses-count.html" class="function" rel="rdfs-seeAlso">fann_get_cascade_activation_steepnesses_count()</a> - The number of activation steepnesses</span></li>
    <li class="member"><span class="function"><a href="function.fann-get-cascade-num-candidate-groups.html" class="function" rel="rdfs-seeAlso">fann_get_cascade_num_candidate_groups()</a> - Returns the number of candidate groups</span></li>
   </ul>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.fann-get-cascade-num-candidate-groups.html">fann_get_cascade_num_candidate_groups</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.fann-get-cascade-output-change-fraction.html">fann_get_cascade_output_change_fraction</a></div>
 <div class="up"><a href="ref.fann.html">Fann 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
